#ifndef _MES_INPUT_1_MODEL_H
#define _MES_INPUT_1_MODEL_H
#include "atomic.h"

class MES_input_1_model : public Atomic
{
public:
	MES_input_1_model( const string & name = "MES_input_1_model" );
	inline string className() const
	{
		return "MES_input_1_model" ;
	}

protected:
	Model &initFunction();
	Model &externalFunction(const ExternalMessage &);
	Model &internalFunction(const InternalMessage &);
	Model &outputFunction(const InternalMessage &);

private:
	const Port &MES_input_1_stream_in;
	float MES_input_1_stream_in_flowrate;

	Port &MES_input_1_stream_crude;
	float MES_input_1_stream_crude_flowrate;



	Time delay;
	float total_flowrate;
	int count;
};

#endif
